package com.stylefeng.guns.modular.netcar.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper=true)
@TableName("order_refund_inf")
 /**
 * 退款记录表
 *
 * @author 张亚林
 * @Date 2019-03-08 10:34
 * @TableField(exist = false) 实现属性与数据库字段不一一对应
 */
public class OrderRefundInf extends Model<OrderRefundInf> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     * 自动生成后修改成实际的主键 
     */
    protected Serializable pkVal() {
        return this.id;
    }
    
    //扩展能查询字段
    @TableField(exist = false) 
    private String key ;
    //开始日期
    @TableField(exist = false)     
    private String sdate;
    //截止日期 
    @TableField(exist = false) 
	private String edate;
    //排序字段
    @TableField(exist = false) 
	private String  sortField ;
	//排序	
	@TableField(exist = false) 
	private String sortOrder;

	
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;     //主键

    @ApiModelProperty(value = "订单ID")
    @TableField("oi_id")
    private String oiId;     //订单ID

    @ApiModelProperty(value = "申请人")
    @TableField("create_user")
    private String createUser;     //申请人

    @ApiModelProperty(value = "申请时间")
    @TableField("create_time")
    private Date createTime;     //申请时间

    @ApiModelProperty(value = "申请退款金额(单位:分)")
    @TableField("or_refund_fee")
    private Integer orRefundFee;     //申请退款金额(单位:分)

    @ApiModelProperty(value = "退款状态：0:后台申请 1:乘客申请")
    @TableField("or_state")
    private String orState;     //退款状态：0:后台申请 1:乘客申请

    @ApiModelProperty(value = "退款时间")
    @TableField("refund_time")
    private Date refundTime;     //退款时间

    @ApiModelProperty(value = "退款状态1:成功 0:失败")
    @TableField("state")
    private String state;     //退款状态1:成功 0:失败

    @ApiModelProperty(value = "描述")
    @TableField("remark")
    private String remark;     //描述


}
